import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import set_node_cls from '@dfeidao/atom-web/ui/set-node-cls';
import show from '@dfeidao/atom-web/ui/show';
import p001 from './p001';
import p002 from './p002';
import p003 from './p003';

export default async function a001(fd: IFeidaoAiBrowserComponent) {
	const add=fd.data.node.querySelector<HTMLDivElement>('[data-id="add"]');
	set_node_cls(add,'display-n',false);
		show(fd.data.node);
	// 新增初始化
	const res = await nodejs<{dt: Array<{}>,dp: Array<{}>}>('staff-management/zj-000001/s003',{});
	render(fd,res.dt,p001,'p001','inner');
	render(fd,res.dp,p002,'p002','inner');
	render(fd,"",p003,'p003','inner');
}
